﻿@using Pottery.FrontEnd.Resources;

@if (Request.IsAuthenticated)
{
    <ul>
        <li>@{Html.RenderPartial("_Language");}</li>
    </ul>
    
    <text>
    @_LogOn.Hello, @Html.ActionLink(User.Identity.Name, "ProfileDataForm", "Home", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
        {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">@_LogOn.LogOut</a>
        }
    </text>    
}
else
{
    <ul>
        <li>@{Html.RenderPartial("_Language");}</li>
        <li>@Html.ActionLink(_LogOn.LogOn, "LogOn", "Account")</li>
    </ul>
}